<!--
@http://www.cnblogs.com/zhuweisky/p/3930780.html
-->
<!DOCTYPE html>
</html>
    <head>
        <meta charset="utf-8">
        <title>myws_client</title>
    </head>
    <body>
        <h3>WebSocketTest</h3>
        <div id="login">
            <div>
                <input id="serverIP" type="text" placeholder="服务器IP" value="127.0.0.1" autofocus="autofocus" />
                <input id="serverPort" type="text" placeholder="服务器端口" value="9000" />
                <input id="btnConnect" type="button" value="连接" onclick="connect()" />
            </div>
            <div>
                <input id="sendText" type="text" placeholder="发送文本" value="Hello这是js发来的" />
                <input id="sendCount" type="text" placeholder="发送数据数量" value="1" />
                <input id="btnSend" type="button" value="发送" onclick="send()" />
            </div>
            <div>
                <div>
                    来自服务端的消息
                </div>
                <textarea id="txtContent" cols="50" rows="10" readonly="readonly"></textarea>
            </div>
        </div>
    </body>
    <script src="protobuf/long.js"></script>       
    <script src="protobuf/bytebuffer.js"></script>
    <script src="protobuf/protobuf_old.js"></script>           
    <script src="readProtoBuf.js"></script>

    <script src="websocket.js"></script>
    <script src="protoHandler.js"></script>        
    <script src="reader.js"></script>      
    
</html>